---
title: "Python Date Time"
date: 2019-10-24
categories:
- python
tags:
---

<div id="content">
<p>
&gt;&gt;&gt; now = datetime.datetime.now()
&gt;&gt;&gt; timestamp = now.timestamp()
1571887378.223067
</p>
<p>
&gt;&gt;&gt; timestamp = int(timestamp * 1000)
1571887530736
</p>
</div>
<div class="status" id="postamble">
<p class="date">Date: 2019-10-24</p>
<p class="author">Author: gdme1320</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
